package com.lin.linapiinterface;

import com.lin.linapiclientsdk.client.LinApiClient;
import com.lin.linapiclientsdk.model.User;

public class Main {
    public static void main(String[] args) {
        String accessKey="test";
        String secretKey="abcdefgh";
        LinApiClient linApiClient = new LinApiClient(accessKey,secretKey);
//        String result1 = linApiClient.getNameByGet("huaixu");
//        String result2 = linApiClient.getNameByPost("huaixu");
        User user = new User();
        user.setUsername("linhuaixu");//hutool工具类这里传入中文会乱码
        String result3 = linApiClient.getUserNameByPost(user);
//        System.out.println(result1);
//        System.out.println(result2);
        System.out.println(result3);
    }
}
